package com.jy.datapipeline.export.splitkey.utils;

import java.sql.Types;

/**
 * @类名 AssertUtil
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/8/28 11:14
 * @版本 1.0
 */
public class AssertUtil {

    public static boolean isNumberType(int MinSplitPKType) {
        return MinSplitPKType == Types.ROWID || MinSplitPKType == Types.INTEGER ||
                MinSplitPKType == Types.NUMERIC || MinSplitPKType == Types.LONGNVARCHAR ||
                MinSplitPKType == Types.DECIMAL || MinSplitPKType == Types.FLOAT ||
                MinSplitPKType == Types.BIGINT;
    }

    public static boolean isNotNumberType(int MinSplitPKType) {
        return MinSplitPKType == Types.VARCHAR || MinSplitPKType == Types.CHAR
                || MinSplitPKType == Types.DATE || MinSplitPKType == Types.TIMESTAMP;
    }
}
